import request from '@/utils/request'

// 查询体能科目项目列表
export function listFirefighterSubject(query) {
  return request({
    url: '/subject/FirefighterSubject/list',
    method: 'get',
    params: query
  })
}

// 查询体能科目项目详细
export function getFirefighterSubject(id) {
  return request({
    url: '/subject/FirefighterSubject/' + id,
    method: 'get'
  })
}

// 新增体能科目项目
export function addFirefighterSubject(data) {
  return request({
    url: '/subject/FirefighterSubject',
    method: 'post',
    data: data
  })
}

// 修改体能科目项目
export function updateFirefighterSubject(data) {
  return request({
    url: '/subject/FirefighterSubject',
    method: 'put',
    data: data
  })
}

// 删除体能科目项目
export function delFirefighterSubject(id) {
  return request({
    url: '/subject/FirefighterSubject/' + id,
    method: 'delete'
  })
}
